package cn.edu.sgu.www.mhxysy.service.children;

import cn.edu.sgu.www.mhxysy.dto.children.ChildrenJiadianDTO;
import cn.edu.sgu.www.mhxysy.dto.chongwu.ChongwuJiadianDTO;
import cn.edu.sgu.www.mhxysy.entity.children.ChildrenJiadian;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
public interface ChildrenJiadianService {

    /**
     * 修改子女加点和属性
     * @param childrenJiadianDTO 子女加点信息
     */
    @Transactional(rollbackFor = Exception.class)
    void update(ChildrenJiadianDTO childrenJiadianDTO);

    /**
     * 通过子女ID查询子女加点
     * @param childrenId 子女ID
     * @return ChildrenJiadian
     */
    ChildrenJiadian selectByChildrenId(String childrenId);
}